package net.sourceforge.peertwitter.scamp.messaging;

import rice.p2p.commonapi.NodeHandle;

public abstract class ScampReplyMessage extends ScampMessage {
	
	private static final long serialVersionUID = 8494568086421066978L;
	private final ScampMessage originalMessage;

	public ScampReplyMessage(ScampMessage originalMessage, NodeHandle replier) {
		this(originalMessage, replier, -1);
	}
	
	public ScampReplyMessage(ScampMessage originalMessage, NodeHandle replier, long timestamp) {
		super(originalMessage.getGroup(), replier, timestamp);
		this.originalMessage = originalMessage;
	}

//	@Override
//	public void serialize(OutputBuffer buf) throws IOException {
//		getOriginalMessage().serialize(buf);
//	}
	
	public ScampMessage getOriginalMessage() {
		return this.originalMessage;
	}
}
